//
//  MessageCell.m
//  DaDaBao
//
//  Created by admin on 15/8/20.
//  Copyright (c) 2015年 User. All rights reserved.
//

#import "MessageCell.h"

@implementation MessageCell



-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        _titleLab = [[UILabel alloc] initWithFrame:CGRectMake(10.0f, 10.0f, SCREEN_WIDTH-20.0f-120.0f, 20.0f)];
        _titleLab.font= [UIFont boldSystemFontOfSize:17.0f];
        _titleLab.textAlignment = NSTextAlignmentLeft;
        [self addSubview:_titleLab];
        
        _timeLab = [[UILabel alloc] initWithFrame:CGRectMake(0.0f, _titleLab.frame.origin.y, SCREEN_WIDTH - 20.0f, 40.0f)];
        _timeLab.font = [UIFont systemFontOfSize:15.0f];
        _timeLab.textAlignment = NSTextAlignmentRight;
        _timeLab.textColor = [UIColor grayColor];
        [self addSubview:_timeLab];
        
        _textLab = [[UILabel alloc] initWithFrame:CGRectMake(10.0f, 40.0f, SCREEN_WIDTH-20.0f, 70)];
        _textLab.numberOfLines = 0;
        _textLab.textColor = [UIColor grayColor];
        [self addSubview:_textLab];
    }
    
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
